<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:body>
        <ui:composition template="/WEB-INF/jsf2/templates/templateBasic.xhtml">
            <ui:define name="top">
                <ui:include src="/WEB-INF/jsf2/templates/templateNavigation.xhtml"/>
            </ui:define>
            <ui:define name="bottom">
                <ui:include src="/WEB-INF/jsf2/templates/templateBottom.xhtml"/>
            </ui:define>

            <ui:define name="content">
                <f:loadBundle basename="com.gq2.multilang.bet" var="txt_bet"/>
                <f:loadBundle basename="com.gq2.multilang.granq" var="txt_com"/>
                <h3 align="center">#{txt_bet.generateAuthomaticReductions}</h3>
                <h:form id="genAuthomaticColumns_form">
                    <table>

                        <tr>
                            <td>
                                <h:outputLabel for="componentLabel3" id="componentLabel3">
                                    <h:outputText id="componentLabel3Text" value="#{txt_com.Championship}"/>
                                </h:outputLabel>
                            </td>
                            <td colspan="2">
                                <h:selectOneMenu id="dropdown1" onchange="submit()" value="#{genAuthomaticColumns.chaId}" valueChangeListener="#{genAuthomaticColumns.championshipChangeEvent}">
                                    <f:selectItems id="dropdown1SelectItems" value="#{genAuthomaticColumns.championshipItemList}"/>
                                </h:selectOneMenu>
                            </td>

                            <td colspan="2">
                                <h:selectOneRadio id="mode" value="#{genAuthomaticColumns.generateMode}" >
                                    <f:selectItem id="mode_0" itemValue="0" itemLabel="#{txt_com.generateOneRound}"/>
                                    <f:selectItem id="mode_1" itemValue="1" itemLabel="#{txt_com.generateFromRound}"/>
                                    <f:selectItem id="mode_2" itemValue="2" itemLabel="#{txt_com.generateAllRounds}"/>
                                    <f:selectItem id="mode_3" itemValue="3" itemLabel="#{txt_com.generateFromChampionship}"/>
                                </h:selectOneRadio>
                            </td>
                        </tr>
			<tr>
			    <td></td>
			    <td colspan="2">

			    </td>
			    <td colspan="2">
				<h:selectOneMenu id="select201" value="#{genAuthomaticColumns.generationBetType}">
				    <f:selectItems value="#{genAuthomaticColumns.generationBetTypeList}"
						   var="genType"
						   itemValue="#{genType.id}"
						   itemLabel="#{txt_bet[genType.key]}"
						   itemDescription="#{txt_bet[genType.key]}" />
				</h:selectOneMenu>
			    </td>
                        </tr>
			<tr>
			    <td></td>
			    <td colspan="2">

			    </td>
			    <td colspan="2">
				<h:selectManyCheckbox  id="manyCheckBoxReductionTypes"  value="#{genAuthomaticColumns.reductionTypes}">
                                    <f:selectItems id="SelectItemsReductionTypes" value="#{genAuthomaticColumns.reductionTypeList}"
						   var="reducType"
						   itemValue="#{reducType.id}"
						   itemLabel="#{txt_bet[reducType.key]}"
						   itemDescription="#{txt_bet[reducType.key]}" />
				</h:selectManyCheckbox>
			    </td>
                        </tr>
                        <tr>
                            <td>txt_com.Round</td>
                            <td>
                                <h:selectOneMenu  id="ronda2"  onchange="submit()" value="#{genAuthomaticColumns.round}" valueChangeListener="#{genAuthomaticColumns.roundChangeEvent}">
                                    <f:selectItems id="dropdown2SelectItems" value="#{genAuthomaticColumns.roundItemList}"/>
                                </h:selectOneMenu>

                            </td>
                        </tr>


                        <tr>
                            <td colspan="3">&nbsp;</td>
                            <td align="center">
                                <h:commandButton action="Home" id="cancelar" value="#{txt_com.Cancel}"/>
                            </td>
                            <td align="center">
                                <h:commandButton action="#{genAuthomaticColumns.generateProcess}" id="generateClasif" value="#{txt_com.generate}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td colspan="4">&nbsp;</td>
                        </tr>

                    </table>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>

</html>
